import { ref } from 'vue';

export function usePageSearch() {
      // 清空
     const PageContentRef=ref()
     //  点击哪个搜索哪个
     const handleQueryClick=(queryInfo:any)=>{
      PageContentRef.value?.getPageData(queryInfo)
   }
    const handleResetClick=()=>{
      PageContentRef.value?.getPageData()
    }
   

    return { PageContentRef,handleResetClick,handleQueryClick }
}